str = input()
sum = cnt = 0
for i in str:
    sum += int(i)
    cnt += 1
print(cnt, sum)